package com.itgungnir.designpattern.template;

public abstract class BeverageMaker {

	public final void makeBeverage() {
		boilWater();
		brew();
		putInCup();
		addCondiments();
	}

	// 烧水
	protected void boilWater() {
		System.out.println("烧水......");
	}

	// 冲泡
	protected abstract void brew();

	// 倒入到杯子中
	protected void putInCup() {
		System.out.println("倒入杯中......");
	}

	// 加调料
	protected abstract void addCondiments();
}